/* :root {
    --projet-max-width: 80%; 
}

.projets {
    height: auto;
    padding: 50px 0;
}

.projet {
    position: relative;
    width: var(--projet-max-width);
    overflow: hidden;
}

.projet:hover {
    cursor: pointer;
}

.projet-grid {
    display: grid;
    min-width: 80%;
    max-width: var(--projet-max-width);
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 40px;
    margin: 0 auto;
    justify-items: center;
}

.projet .video-container {
    position: relative;
    display: flex;
    height: 100%;
    object-fit: contain;
}

.projet .video {
    max-width: 100%;
    max-height: 100%;
}

.overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    padding-left: 20px;
    box-sizing: border-box;
}

.projet:hover .overlay {
    left: 0;
    opacity: 1;
}

.project-name {
    font-size: 100%;
    font-weight: bold;
    color: #fff;
    text-align: left;
    margin-bottom: 10px;
    position: relative;
    z-index: 1; 
}

.project-global-info {
    color: white;
    font-size: .9rem;
}

.project-info-img {
    max-width: 30px;
}

.project-info-li {
    font-size: 1rem;
    color: white;
}

.project-overlay-game-type {
    margin-top: -1rem;
    font-style: italic;
    color: white;
    font-size: 1rem;
}

@media (max-width: 1500px) {
    .overlay {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .overlay {
        width: 100%;
    }

    .project-name {
        font-size: 1rem;
    }

    .project-overlay-game-type {
        font-size: .8rem;
        padding-top: 5px;
        margin-bottom: -10px;
    }

    .project-global-info {
        color: white;
        font-size: .8rem;
        margin-bottom: -10px;
    }

    .project-info-li {
        font-size: .7rem;
    }

    .project-info-img {
        max-width: 20px;
    }
} */


:root {
    --projet-max-width: 70%; 
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ----- PROJECTS ----- */
.projets {
    padding: 50px 0;
    text-align: center;
    margin: 0 auto;
    width: var(--projet-max-width); /* Utilisation de la variable --projet-max-width */
}

.title-section {
    font-size: 24px;
    margin-bottom: 20px;
}

.projet-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 40px;
    justify-items: center;
}

/* Style pour un projet */
.projet {
    position: relative;
    width: var(--projet-max-width);
    overflow: hidden;
}

.projet:hover {
    cursor: pointer;
}

/* Style pour le conteneur vidéo */
.global-overlay {
    position: relative;
}

.video-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video {
    max-width: 100%;
    max-height: 100%;
}

.image{
    max-width: 100%;
    max-height: 100%;
}

/* Style pour l'overlay */
.overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 40%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    transition: all 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

/* Au survol, affiche l'overlay */
.projet:hover .overlay {
    left: 0;
    opacity: 1;
}

/* Style pour le nom du projet */
.project-name {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 10px;
}

.project-overlay-game-type {
    font-style: italic;
    color: white;
    font-size: 18px;
}

.project-global-info {
    color: white;
    font-size: 16px;
    display: block;
    margin-bottom: 10px;
}

.project-global-info img{
    margin-left: 5px;
    max-width: 20px;
    max-height: 20px;
}

.project-info {
    margin-top: 10px;
    margin-left: 10%;
    text-align: left;
}

.project-info-ul {
    list-style: none;
    padding: 0;
}

.project-info-li {
    font-size: 18px;
    color: white;
}

/* Media Queries pour les écrans plus petits */
@media (max-width: 768px) {
    .projet {
        width: 100%;
    }

    .overlay {
        width: 100%;
    }
}
